// Springboot001Application.java
package com.kk.springboot_001;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

// 排除默认的数据源自动配置
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {"com.kk.springboot_001", "com.kk.test.connectionpool"})
public class Springboot001Application {
    public static void main(String[] args) {
        SpringApplication.run(Springboot001Application.class, args);
    }
}